package com.hy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hy.medicine.MedicineStock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MedicineStockMapper extends BaseMapper<MedicineStock> {

    // 批量查询药品库存
    List<MedicineStock> selectBatchByMedicineIds(@Param("medicineIds") List<Integer> medicineIds);

    // 查询库存预警商品
    List<MedicineStock> selectLowStockMedicines(@Param("warningThreshold") Integer warningThreshold);
}
